#coding: utf-8


from django.db import models

class RootCert(models.Model):
    main_cert_name = models.CharField(max_length=50)
    remark = models.CharField(max_length=200)

class ChildCert(models.Model):
    RootCert_id = models.ForeignKey(RootCert,help_text='根域名')
    sub_cert_name = models.CharField(max_length=50)
    start_time = models.DateTimeField('date published')
    end_time = models.DateTimeField('date published')
    remark = models.CharField(max_length=200)

# Create your models here.
